/**
 * 
 */
package com.oceansoft.mobile.biz.front.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author Administrator
 * 
 */
public class PrizeWinner {
	private Integer id;
	private String idCard;
	private String mobile;
	private Integer type;
	private String weixinId;
	private Integer sid;

	public static RowMapper<PrizeWinner> getMap() {
		return new RowMapper<PrizeWinner>() {
			@Override
			public PrizeWinner mapRow(ResultSet  rs,int rowIndex) throws SQLException{
				PrizeWinner pw=new PrizeWinner();
				pw.setId(rs.getInt("ID"));
				pw.setIdCard(rs.getString("IDCARD"));
				pw.setMobile(rs.getString("MOBILE"));
				pw.setType(rs.getInt("TYPE"));
				pw.setWeixinId(rs.getString("WEIXINID"));
				pw.setSid(rs.getInt("SID"));
				return pw;
			}
		};
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getWeixinId() {
		return weixinId;
	}

	public void setWeixinId(String weixinId) {
		this.weixinId = weixinId;
	}

	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}
}
